package lu.med.praxiswahl.wahlumed.client.gravtest;

import java.util.Calendar;

import lu.med.praxiswahl.wahlumed.model.beans.AccountingTBL;

/**
 * 
 * @author Lars Holger Roth
 */
public class GravTestDataRow {
	private Long id;
	private String nr;
	private String datum;
	private String name, geburtstag, test;
	private String matricule;
	private boolean changed;

	private boolean locked;
	private Calendar lastEditedTime;
	private AccountingTBL lastEditor;

	public GravTestDataRow() {
	}

	public String getDatum() {
		return datum;
	}

	public String getGeburtstag() {
		if (geburtstag == null)
			return "";
		return geburtstag;
	}

	public Long getId() {
		return id;
	}

	public String getMatricule() {
		return matricule;
	}

	public String getName() {
		if (name == null)
			return "";
		return name;
	}

	public String getNr() {
		if (nr == null)
			return "";
		return nr;
	}

	public String getTest() {
		if (test == null)
			return "";
		return test;
	}

	public boolean isChanged() {
		return changed;
	}

	public void setChanged(boolean v) {
		changed = v;
	}

	public void setDatum(String datum) {
		this.datum = datum;
	}

	public void setGeburtstag(String geburtstag) {
		this.geburtstag = geburtstag;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public void setMatricule(String v) {
		matricule = v;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setNr(String nr) {
		this.nr = nr;
	}

	public void setTest(String test) {
		this.test = test;
	}

	public boolean isLocked() {
		return locked;
	}

	public void setLocked(boolean locked) {
		this.locked = locked;
	}

	public Calendar getLastEditedTime() {
		return lastEditedTime;
	}

	public void setLastEditedTime(Calendar lastEditedTime) {
		this.lastEditedTime = lastEditedTime;
	}

	public AccountingTBL getLastEditor() {
		return lastEditor;
	}

	public void setLastEditor(AccountingTBL lastEditor) {
		this.lastEditor = lastEditor;
	}

}
